<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>MyHouse公寓后台</title>
<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="house_css/mainstyle.css" />
<!--[if lt IE 9]>
<script src="house_js/html5.js"></script>
<![endif]-->
<script src="house_js/jquery.js"></script>
<script src="house_js/jquery.mCustomScrollbar.concat.min.js"></script>
 <script src="/webjars/vue/2.6.10/dist/vue.js"></script>
 <script src="/webjars/axios/0.19.0/dist/axios.min.js"></script>
 <script src="/xtiper_js/xtiper.js"></script>
 <script src="configjs/config.js"></script>
 <link href="/xtiper_css/xtiper.css" rel="stylesheet" type="text/css"/>
 <link rel="stylesheet" type="text/css" href="/webjars/bootstrap/3.3.7/css/bootstrap.css"/>
 <script src="/webjars/bootstrap/3.3.7/js/bootstrap.js" type="text/javascript" rel="script"></script>

<script>
	(function($){
		$(window).load(function(){

			$("a[rel='load-content']").click(function(e){
				e.preventDefault();
				var url=$(this).attr("href");
				$.get(url,function(data){
					$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
					//scroll-to appended content
					$(".content").mCustomScrollbar("scrollTo","h2:last");
				});
			});

			$(".content").delegate("a[href='top']","click",function(e){
				e.preventDefault();
				$(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
			});

		});
	})(jQuery);
</script>
</head>
<body>
<div id="vuebox">
<!--header-->
<header>
 <h1><img src="image/myhouselogo.png"/></h1>
 <ul class="rt_nav">
  <li><a >公寓编号:{{house.id}}</a></li>
  <li><a class="website_icon" @click="welcome()">首页</a></li>
  <li><a href="#" class="admin_icon">{{manage.name}}</a></li>
  <li><a href="#" class="set_icon" @click.stop="manageM()" v-show="manage.isz==1" id="manageshow">管理员管理</a></li>
  <li><a href="house_login.html" class="quit_icon">安全退出</a></li>
 </ul>
</header>

<!--aside nav-->
<aside class="lt_aside_nav content mCustomScrollbar">
 <h2><a href="">[{{house.housename}}]</a></h2>
 <ul>
  <div id="asidem">
   <li>
    <dl>
     <dt>住户管理</dt>
     <dd><a @click.stop="liveradd()">住户入住登记</a></dd>
     <dd><a @click.stop="liverlist(1)">住户列表</a></dd>
    </dl>
   </li>
   <li>
    <dl>
     <dt>公寓管理</dt>
     <dd><a @click.stop="houseinfo()">公寓信息</a></dd>
     <dd><a @click.stop="wxfkmanage(1)">维修反馈管理</a></dd>
    </dl>
   </li>
   <li>
    <dl>
     <dt>房间管理</dt>

     <dd><a @click.stop="addroom()">增加房间</a></dd>
     <dd><a @click.stop="roomlist(1)">房间列表</a></dd>
    </dl>
   </li>
   <li>
    <dl>
     <dt>交易管理</dt>
     <dd><a @click.stop="liverorder(1)">住户订单记录</a></dd>
     <dd><a @click.stop="houseorder(1)">公寓订单记录</a></dd>
     <dd><a @click.stop="houserate()">公寓资费管理</a></dd>
    </dl>
   </li>
   <li>
    <dl>
     <dt>系统管理</dt>
     <dd><a @click="getSystem()">系统消息</a></dd>
     <dd><a @click="fanout()">通知群发</a></dd>
     <dd><a @click="systemrate()">系统费率</a></dd>
    </dl>
   </li>
   <li>
  </div>
  <div id="asidez" style="display: none">
   <li>
    <dl>
     <dt>管理员管理</dt>

     <dd><a @click.stop="manageS(1)">管理员审核</a></dd>
     <dd><a @click.stop="toAddManage()">增加管理员</a></dd>
     <dd><a @click.stop="managelist(1)">管理员列表</a></dd>
    </dl>
   </li>
  </div>
 </ul>
</aside>
<!--欢迎页-->
<div id="welcome" style="display: block">
 <div class="container">
  <img src="image/myhouselogo.png">
  <h1>欢迎使用MyHouse公寓管理系统</h1>
  <h3 style="color: #0a6ebd">我们为您提供左侧列举的各种服务</h3>
  <h4>如果您在使用过程中有疑问请点击<a href="#" @click="help()">帮助</a></h4>
 </div>

</div>
 <div id="help" style="display: none">
  <div  class="container">
   <h1>MyHouse帮助文档</h1>
   <p>
   <h3>管理员如何修改自己的密码?</h3>
   1.通过总管理员进入管理员管理后台进行修改(包括总管理员自己密码的修改也可使用此方法)<br>
   2.通过忘记密码功能进行密码重置<br>
   目前没有单独的密码修改功能<br>
   </p>
  </div>
 </div>
<!--入住登记-->
<div id="liveradd">
 <div class="container">
  <div class="row">&nbsp;<br/><br><br></div>
  <!--登记1-->
  <table class="table table-striped">
   <thead>
   <tr>
    <th colspan="2">{{house.housename}}住户入住登记(一)<span style="color:red">(住户已有MyHouse帐号并且绑定本公寓后可使用此处登记)</span></th>
   </tr>
   </thead>
   <tbody>
   <tr>
    <td>住户编号</td>
    <td><input type="text" v-model="liverid"></td>
   </tr>
   <tr>
    <td>入住房间编号</td>
    <td><input type="text" v-model="roomid"></td>
   </tr>
   <tr>
    <td>操作</td>
    <td><a class="btn btn-success" style="color:white" @click="add1()">登记</a>
     &nbsp;
     <a class="btn btn-primary" style="color:white" @click="clear1()">清空</a>
    </td>
   </tr>
   </tbody>
  </table>
  <div class="row">&nbsp;<br/><br><br></div>
  <!--登记2-->
  <table class="table table-striped">
   <thead>
   <tr>
    <th colspan="2">{{house.housename}}住户入住登记(二)(住户<span style="color:blueviolet">没有</span>MyHouse帐号使用此处登记)</th>
   </tr>
   </thead>
   <tbody>
   <tr>
    <td>住户编号</td>
    <td>无需填写,系统自动生成</td>
   </tr>
   <tr>
    <td>入住房间编号</td>
    <td><input type="text" v-model="newliver.roomid"></td>
   </tr>
   <tr>
    <td>住户姓名</td>
    <td><input type="text" v-model="newliver.name"></td>
   </tr>
   <tr>
    <td>住户身份证号</td>
    <td><input type="text" v-model="newliver.idcard"></td>
   </tr>
   <tr>
    <td>住户手机号</td>
    <td><input type="text" v-model="newliver.phone">
     &nbsp;
     <button @click="sendCode()" id="send">发送短信验证码</button></td>
   </tr>
   <tr>
    <td>验证码:</td>
    <td><input type="text" v-model="newliver.code"></td>
   </tr>
   <tr>
    <td>操作</td>
    <td><a class="btn btn-success" style="color:white" @click="add2()">登记</a>
     &nbsp;
     <a class="btn btn-primary" style="color:white" @click="clear2()">清空</a>
    </td>
   </tr>
   </tbody>
  </table>
 </div>
</div>
<!--住户列表-->
 <div id="liverlist" style="display: none">
 <div class="container">
  <table class="table table-striped">
   <caption>MyHouse-{{house.housename}}住户列表</caption>
   <thead>
   <tr>
    <th colspan="2"><span>搜索</span>:<input type="text" placeholder="请输入住户名" v-model="searchlivername">&nbsp;<button @click="liverlist(1)">搜索</button></th>
   </tr>
   <tr>
    <th>住户编号</th>
    <th>住户姓名</th>
    <th>住户联系方式</th>
    <th>住户房间编号</th>
    <th>住户入住时间</th>
    <th>住户到期时间</th>
    <th>操作</th>
   </tr>
   </thead>
   <tbody>
   <tr v-for="item in livers.list">
    <td v-text="item.id">Tanmay</td>
    <td v-text="item.name">Tanmay</td>
    <td v-if="item.phone!=null&&item.phone!=''" v-text="item.phone">Tanmay</td>
    <td v-if="item.email!=null&&item.email!=''" v-text="item.email">Tanmay</td>
    <td v-text="item.roomid" v-show="item.roomid!=0&&item.roomid!=''&&item.roomid!=null">Tanmay</td>
    <td v-show="item.roomid==0||item.roomid==null||item.roomid==''"><span style="color: red">未绑定房间</span></td>
    <td v-text="item.starttime">Tanmay</td>
    <td v-text="item.endtime" v-show="item.endtime!=null">Tanmay</td>
    <td v-show="item.endtime==null">暂未开始缴费入住</td>
    <td><a href="#" @click.stop="toLongerDay(item)">住宿延期</a>&nbsp;<a href="#" @click.stop="toRemoveRoom(item.id)">移动房间</a>&nbsp;<a href="#">账单催收</a>&nbsp;<a href="#" @click.stop="deleteLiver(item.id,item.name)">删除住户</a></td>
   </tr>
   </tbody>
  </table>
     <ul class="pagination">
         <li><a @click="liverlist(livers.prePage)" v-show="livers.hasPreviousPage==true">&laquo;</a></li>
         <li v-for="item in livers.navigatepageNums"><a @click="liverlist(item)">{{item}}</a></li>
         <li><a @click="liverlist(livers.nextPage)" v-show="livers.hasNextPage==true">&raquo;</a></li>
     </ul>
 </div>
 </div>
 <!--公寓信息-->
 <div id="houseinfo" style="display: none">
  <div class="container">
   <table class="table table-hover">
    <caption>公寓信息</caption>
    <thead>
    <tr>
     <th colspan="2">{{house.housename}}公寓基本信息</th>
    </tr>
    </thead>
    <tbody>
    <tr>
     <td>公寓名称</td>
     <td>{{house.housename}}</td>
    </tr>
    <tr>
     <td>公寓地址</td>
     <td>{{house.houseaddr}}</td>
    </tr>
    <tr>
     <td>公寓法人</td>
     <td>{{house.frname}}</td>
    </tr>
    <tr>
     <td>公寓公告</td>
     <td>{{house.housenote}}&nbsp;<a href="#" @click.stop="toUpdateHouseNote()">修改公告</a></td>
    </tr>
    <tr>
    <tr>
     <td>住户总数</td>
     <td>{{livertotal}}</td>
    </tr>
    <tr>
    <tr>
     <td>房间总数</td>
     <td>{{roomtotal}}</td>
    </tr>
    <!--<tr>
     <td>公寓系统使用权到期时间</td>
     <td>2020-7-22&nbsp;<a href="#">续租</a></td>
    </tr>-->
    </tbody>
   </table>
  </div>
 </div>

    <!--维修反馈-->
 <div id="wxfklist" style="display: none">
        <div class="container">
            <table class="table table-striped">
                <caption>MyHouse-{{house.housename}}维修反馈列表</caption>
                <thead>
                <tr>
                    <th colspan="9"> <span>搜索</span>&nbsp;起始日期:<input type="text" v-model="wxfksearchStartTime" placeholder="起始日期,格式为:年/月/日">--截止日期:<input type="text" v-model="wxfksearchEndTime" placeholder="截止日期,格式为:年/月/日">&nbsp;反馈内容:<input type="text" v-model="wxfksearchContent" placeholder="反馈内容,不填默认为全部">&nbsp;反馈住户编号:<input style="width: 90px" type="text" v-model="wxfksearchUid" placeholder="默认全部"> <button @click="wxfkmanage(1)">搜索</button></th>
                </tr>
                <tr>
                    <th>反馈编号</th>
                    <th>反馈内容</th>
                    <th>反馈住户编号</th>
                    <th>处理状态</th>
                    <th>处理结果</th>
                    <th>提交日期</th>
                    <th>处理日期</th>
                    <th>处理人</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr v-for="item in wxfks.list">
                    <td v-text="item.id">Tanmay</td>
                    <td v-text="item.fkcontent">Tanmay</td>
                    <td v-text="item.uid">Tanmay</td>
                    <td v-show="item.state==0"><span style="color: red">未处理</span></td>
                    <td v-show="item.state==1"><span style="color: mediumseagreen">已处理</span></td>
                    <td v-show="item.state==null"><span style="color: orange">无法识别的处理状态</span></td>
                 <td v-show="item.state==0"><span style="color: red">未处理</span></td>
                    <td v-show="item.state==1" v-text="item.result">Tanmay</td>
                    <td v-text="item.startdate">Tanmay</td>
                 <td v-show="item.state==0"><span style="color: red">未处理</span></td>
                    <td v-text="item.enddate"  v-show="item.state==1" >Tanmay</td>
                 <td v-show="item.state==0"><span style="color: red">未处理</span></td>
                    <td  v-show="item.state==1"  v-text="item.person">Tanmay</td>
                    <td><a href="#" @click.stop="updateWxfkInfo(item.id)" v-if="item.state==0">处理反馈</a>&nbsp;<a href="#" @click.stop="updateWxfkInfo(item.id)" v-if="item.state==1">修改处理结果</a><a href="#" @click.stop="deleteWxfk(item.id)" v-if="manage.isz==1">删除反馈</a></td>
                </tr>
                </tbody>
            </table>
            <ul class="pagination">
                <li><a @click="wxfkmanage(wxfks.prePage)" v-show="wxfks.hasPreviousPage==true">&laquo;</a></li>
                <li v-for="item in wxfks.navigatepageNums"><a @click="wxfkmanage(item)">{{item}}</a></li>
                <li><a @click="wxfkmanage(wxfks.nextPage)" v-show="wxfks.hasNextPage==true">&raquo;</a></li>
            </ul>
        </div>
    </div>

 <!--增加房间-->
 <div id="addroom" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <thead>
    <tr>
     <th colspan="2">{{house.housename}}增加房间</th>
    </tr>
    </thead>
    <tbody>
    <tr>
     <td>房间编号</td>
     <td>无需填写,自动生成</td>
    </tr>
    <tr>
     <td>房间规模</td>
     <td><input type="text" v-model="newroom.roomsize"></td>
    </tr>
    <tr>
     <td>房间门牌号</td>
     <td><input type="text" v-model="newroom.roomname"></td>
    </tr>
    <tr>
     <td>房间日租金</td>
     <td><input type="text" v-model="newroom.dayprice"></td>
    </tr>
    <tr>
     <td>操作</td>
     <td><a href="#" class="btn btn-success" style="color:white" @click="addR()">登记</a>
      &nbsp;
      <a href="#" class="btn btn-primary" style="color:white" @click="clearroomadd()">清空</a>
     </td>
    </tr>
    </tbody>
   </table>
  </div>
 </div>
 <!--房间列表-->
 <div id="roomlist" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <caption>MyHouse-{{house.housename}}房间列表</caption>
    <thead>
    <tr>
     <th colspan="6"><span>搜索</span>:<input type="text" placeholder="请输入房间名/门牌号" v-model="searchRoomName">&nbsp;<button @click="roomlist(1)">搜索</button></th>
    </tr>
    <tr>
     <th>房间编号</th>
     <th>房间名/门牌号</th>
     <th>房间居住人数</th>
     <th>房间规模</th>
     <th>日租金</th>
     <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr v-for="item in rooms.list">
     <td v-text="item.id">Tanmay</td>
     <td v-text="item.roomname">Tanmay</td>
     <td v-text="item.roomnow">Tanmay</td>
     <td v-text="item.roomsize">Tanmay</td>
     <td v-text="item.dayprice">Tanmay</td>
     <td><a href="#" @click.stop="updateRoomInfo(item.id)">修改信息</a>&nbsp;<a href="#" @click.stop="deleteRoom(item.id,item.roomname)">删除房间</a><a href="#" @click.stop="roomLiverList(1,item.id)">住户列表</a></td>
    </tr>
    </tbody>
   </table>
   <ul class="pagination">
    <li><a @click="roomlist(rooms.prePage)" v-show="rooms.hasPreviousPage==true">&laquo;</a></li>
    <li v-for="item in rooms.navigatepageNums"><a @click="roomlist(item)">{{item}}</a></li>
    <li><a @click="roomlist(rooms.nextPage)" v-show="rooms.hasNextPage==true">&raquo;</a></li>
   </ul>
  </div>
 </div>
 <!--住户订单记录-->
 <div id="liverorder" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <caption>MyHouse-{{house.housename}}住户订单记录</caption>
    <thead>
    <tr>
    <th colspan="9"> <span>搜索</span>&nbsp;起始日期:<input type="text" v-model="searchStartTime" placeholder="起始日期,格式为:年/月/日">--截止日期:<input type="text" v-model="searchEndTime" placeholder="截止日期,格式为:年/月/日">&nbsp;订单编号:<input type="text" v-model="searchOrderNo" placeholder="订单编号,不填默认为全部">&nbsp;住户姓名:<input type="text" v-model="searchUname" placeholder="住户姓名,不填默认为全部"> <button @click="liverorder(1)">搜索</button></th>
    </tr>
    <tr>
     <th>订单记录号</th>
     <th>订单编号</th>
     <th>订单日期</th>
     <th>订单金额</th>
     <th>订单备注</th>
     <th>住户姓名</th>
     <th>订单状态</th>
     <th>订单类型</th>
     <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr v-for="item in liverorders.list">
     <td v-text="item.id">Tanmay</td>
     <td v-text="item.orderno">Tanmay</td>
     <td v-text="item.date">Tanmay</td>
     <td v-text="item.money">Tanmay</td>
     <td v-text="item.remark">Tanmay</td>
     <td v-text="item.uname">Tanmay</td>
     <td v-show="item.state==0"><span style="color: red">未付款</span></td>
     <td v-show="item.state==1"><span style="color: mediumseagreen">已付款</span></td>
     <td v-show="item.state==null"><span style="color: mediumseagreen">未识别的付款类型</span></td>
     <td v-show="item.properties==0">用户充值</td>
     <td v-show="item.properties==1">住宿缴费</td>
     <td v-show="item.properties==2">其他缴费</td>
     <td v-show="item.properties==3">押金缴纳</td>
     <td v-show="item.properties==4">押金退回</td>
     <td v-show="item.properties==5">用户提现</td>
     <td v-show="item.properties==null">未识别的类型</td>
     <td><a href="#" @click.stop="deleteLiverOrder(item.id)">删除订单</a></td>
    </tr>
    </tbody>
   </table>
   <ul class="pagination">
    <li><a @click="liverorder(liverorders.prePage)" v-show="liverorders.hasPreviousPage==true">&laquo;</a></li>
    <li v-for="item in liverorders.navigatepageNums"><a @click="liverorder(item)">{{item}}</a></li>
    <li><a @click="liverorder(liverorders.nextPage)" v-show="liverorders.hasNextPage==true">&raquo;</a></li>
   </ul>
  </div>
 </div>
 <!--公寓订单记录-->
 <div id="houseorder" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <caption>MyHouse-{{house.housename}}公寓订单记录</caption>
    <thead>
    <tr>
     <th colspan="9"> <span>搜索</span>&nbsp;起始日期:<input type="text" v-model="houseorderSearchStartTime" placeholder="起始日期,格式为:年/月/日">--截止日期:<input type="text" v-model="houseorderSearchEndTime" placeholder="截止日期,格式为:年/月/日">&nbsp;订单编号:<input type="text" v-model="houseorderSearchOrderNo" placeholder="订单编号,不填默认为全部">&nbsp;<button @click="houseorder(1)">搜索</button></th>
    </tr>
    <tr>
     <th>订单记录号</th>
     <th>订单编号</th>
     <th>订单日期</th>
     <th>订单金额</th>
     <th>订单备注</th>
     <th>订单状态</th>
     <th>订单类型</th>
     <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr v-for="item in houseorders.list">
     <td v-text="item.id">Tanmay</td>
     <td v-text="item.orderno">Tanmay</td>
     <td v-text="item.date">Tanmay</td>
     <td v-text="item.money">Tanmay</td>
     <td v-text="item.remark">Tanmay</td>
     <td v-show="item.state==0"><span style="color: red">未付款</span></td>
     <td v-show="item.state==1"><span style="color: mediumseagreen">已付款</span></td>
     <td v-show="item.state==null"><span style="color: mediumseagreen">未识别的付款类型</span></td>
     <td v-show="item.properties==0">充值</td>
     <td v-show="item.properties==1">提现</td>
     <td v-show="item.properties==2">消息通知</td>
     <td v-show="item.properties==null">未识别的类型</td>
     <td><a href="#" @click.stop="deleteHouseOrder(item.id)">删除订单</a></td>
    </tr>
    </tbody>
   </table>
   <ul class="pagination">
    <li><a @click="houseorder(houseorders.prePage)" v-show="houseorders.hasPreviousPage==true">&laquo;</a></li>
    <li v-for="item in houseorders.navigatepageNums"><a @click="houseorder(item)">{{item}}</a></li>
    <li><a @click="houseorder(houseorders.nextPage)" v-show="houseorders.hasNextPage==true">&raquo;</a></li>
   </ul>
  </div>
 </div>
 <!--公寓资费管理-->
 <div id="houserate" style="display: none">
  <div class="container">
   <div class="table-responsive">
    <table class="table">
     <caption>{{house.housename}}公寓资费管理</caption>
     <thead>
     <tr>
      <th colspan="2">{{house.housename}}</th></tr>
     </thead>
     <tbody>
     <tr>
      <td>余额</td>
      <td v-text="zmanager.money">23/11/2013</td>
     </tr>
     <tr>
      <td>操作</td>
      <td v-show="manage.isz==1"><a href="#" @click.stop="toPayModal()" >充值</a>
      &nbsp;
      <a href="#" @click.stop="toGetMoneyModal()">提现</a>
     </td>
      <td v-show="manage.isz!=1"><span style="color: red">只有总管理员才有权限对资费进行操作</span>
      </td>
     </tr>
     </tbody>
    </table>
   </div>
  </div>
 </div>
 <!--系统费率-->
 <div id="systemrate" style="display: none">
  <div class="container">
   <div class="table-responsive">
    <table class="table">
     <caption>MyHouse系统费率</caption>
     <thead>
     <tr>
      <th colspan="2">MyHouse System</th></tr>
     </thead>
     <tbody>
     <tr>
      <td>充值</td>
      <td>无需手续费</td>
     </tr>
     <tr>
      <td>提现</td>
      <td><a href="#">限时免收手续费</a>
       &nbsp
      </td>
     </tr>
     </tbody>
    </table>
   </div>
  </div>
 </div>

 <!--通知群发-->
 <div id="fanout" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <thead>
    <tr>
     <th colspan="2">{{house.housename}}通知群发[<span style="color:red">短信将收取0.1元/条的费用</span>]</th>
    </tr>
    </thead>
    <tbody>
    <tr>
     <td>通知接收选择</td>
     <td><select v-model="fanouttype">
      <option value="1">所有邮箱注册住户[邮件]</option>
      <option value="2">所有短信注册住户[短信]</option>
      <option value="3">所有住户[邮件/短信]</option>
      <option value="4">7天内到期的所有住户[邮件/短信]</option>
      <option value="5">7天内入住的所有住户[邮件/短信]</option>
     </select></td>
    </tr>
    <tr>
     <td>通知内容</td>
     <td><textarea type="text" v-model="fanoutnote"></textarea></td>
    </tr>
    <tr>
     <td>操作</td>
     <td><a href="#" class="btn btn-success" @click.stop="fanoutmessage()" style="color:white " >发送通知</a>
      &nbsp;
      <a href="#" class="btn btn-primary" style="color:white" @click.stop="clearfanoutnote()">清空</a>
     </td>
    </tr>
    </tbody>
   </table>
   <span style="color:red">由于系统维护原因,短信通知无法发送!</span>
  </div>
 </div>
 <!--管理员审核-->
 <div id="manageS" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <caption>MyHouse-{{house.housename}}管理员审核</caption>
    <thead>
    <tr>
     <th colspan="9"> <span>搜索</span>&nbsp;申请人姓名:<input type="text" v-model="manageSSearchName" placeholder="申请人姓名,不填默认为全部">&nbsp;<button @click="manageS(1)">搜索</button></th>
    </tr>
    <tr>
     <th>管理员编号</th>
     <th>帐号</th>
     <th>申请人姓名</th>
     <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr v-for="item in manageSpageInfo.list">
     <td v-text="item.id">Tanmay</td>
     <td v-text="item.username">Tanmay</td>
     <td v-text="item.name">Tanmay</td>
     <td><a href="#"  @click.stop="manageSDo(item.id,item.name)">通过审核</a>&nbsp;<a href="#" style="color:red" @click.stop="manageSDoNot(item.id,item.name)">拒绝通过</a></td>>
    </tr>
    </tbody>
   </table>
   <ul class="pagination">
    <li><a @click="manageS(manageSpageInfo.prePage)" v-show="manageSpageInfo.hasPreviousPage==true">&laquo;</a></li>
    <li v-for="item in manageSpageInfo.navigatepageNums"><a @click="manageS(item)">{{item}}</a></li>
    <li><a @click="manageS(manageSpageInfo.nextPage)" v-show="manageSpageInfo.hasNextPage==true">&raquo;</a></li>
   </ul>
  </div>
 </div>
 <!--增加管理员-->
 <div id="addManage" style="display: none">
  <div class="container">
   <table class="table table-striped">
    <thead>
    <tr>
     <th colspan="2">{{house.housename}}增加管理员</th>
    </tr>
    </thead>
    <tbody>
    <tr>
     <td>管理员编号</td>
     <td>无需填写,自动生成</td>
    </tr>
    <tr>
     <td>管理员姓名</td>
     <td><input type="text" v-model="newmanage.name"></td>
    </tr>
    <tr>
     <td>管理员帐号</td>
     <td><input type="text" v-model="newmanage.username"></td>
    </tr>
    <tr>
     <td>管理员密码</td>
     <td><input type="text" v-model="newmanage.password"></td>
    </tr>
    <tr>
     <td>操作</td>
     <td><a href="#" class="btn btn-success" style="color:white" @click="addManage()">增加管理员</a>
      &nbsp;
      <a href="#" class="btn btn-primary" style="color:white" @click="clearmanageadd()">清空</a>
     </td>
    </tr>
    </tbody>
   </table>
  </div>

 </div>
  <!--管理员列表-->
  <div id="managelist" style="display: none">
   <div class="container">
    <table class="table table-striped">
     <caption>MyHouse-{{house.housename}}管理员列表</caption>
     <thead>
     <tr>
      <th colspan="2"> <span>搜索</span>&nbsp;管理员姓名:<input type="text" v-model="managelistSearchName" placeholder="管理员姓名,不填默认为全部">&nbsp;<button @click="managelist(1)">搜索</button></th>
     </tr>
     <tr>
      <th>管理员编号</th>
      <th>管理员姓名</th>
      <th>管理员帐号</th>
      <th>管理员邮箱</th>
      <th>操作</th>
     </tr>
     </thead>
     <tbody>
     <tr v-for="item in managelistPageInfo.list">
      <td v-text="item.id">Tanmay</td>
      <td v-text="item.name">Tanmay</td>
      <td v-text="item.username">Tanmay</td>
      <td v-text="item.email" v-show="item.email!=null&&item.email!=''">Tanmay</td>
      <td v-show="item.email==null||item.email==''"><span style="color: red">未绑定邮箱</span></td>
      <td><a href="#" @click.stop="toUpdateManagePwdModal(item.id,0)">修改密码</a>&nbsp;
       <a href="#" @click.stop="toUpdateManagePwdModal(item.id),1">修改信息</a>
       <a href="#" @click.stop="deleteManage(item.id,item.name,item.isz)">删除</a>
      </td>
      <td v-show="item.isz==1"><span style="color:red">☆自己</span></td>
     </tr>
     </tbody>
    </table>
    <ul class="pagination">
     <li><a @click="managelist(  managelistPageInfo.prePage)" v-show="managelistPageInfo.hasPreviousPage==true">&laquo;</a></li>
     <li v-for="item in   managelistPageInfo.navigatepageNums"><a @click="managelist(item)">{{item}}</a></li>
     <li><a @click="managelist(managelistPageInfo.nextPage)" v-show="managelistPageInfo.hasNextPage==true">&raquo;</a></li>
    </ul>
   </div>
  </div>







 <!--邮箱绑定模态框-->
 <div class="modal" id="emailMOdal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideEmailModal()" type="button">&times;</button>
     <div class="modal-title">
      管理员邮箱绑定<span style="color: red">用于密码找回等操作,为了您的帐号安全请尽快绑定!</span>
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">请输入邮箱:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="data.email"  class="form-control" placeholder="请输入您的邮箱">
        <button @click="sendEmail()" id="sendE">发送验证码</button></td>
       </div>
       <label  class="col-sm-3 control-label">验证码:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="data.code"  class="form-control" placeholder="请输入您的验证码">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="bindEmail()">绑定</button>
    </div>
   </div>
  </div>
 </div>

 <!--公告修改模态框-->
 <div class="modal" id="houseNoteModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideHouseNoteModal()" type="button">&times;</button>
     <div class="modal-title">
      公寓公告变更
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">编辑公告:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="housenote"  class="form-control" placeholder="请输入公告">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="updateHouseNote()">确认修改</button>
    </div>
   </div>
  </div>
 </div>

 <!--房间移动模态框-->
 <div class="modal" id="roomMoveModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideRoomMoveModal()" type="button">&times;</button>
     <div class="modal-title">
      住户[{{liverinfo.name}}]房间改变
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">房间编号:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="liverinfo.roomid"  class="form-control" placeholder="请输入房间编号">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="roomMove()">确认移动</button><br>
        <span style="color: red">如果想从房间移除住户,请将住户移动到0号房间!</span>
    </div>
   </div>
  </div>
 </div>

 <!--房间信息修改模态框-->
 <div class="modal" id="updateRoomInfoModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideUpdateRoomInfoModal()" type="button">&times;</button>
     <div class="modal-title">
      房间信息修改
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">房间编号:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="roominfo.id"  class="form-control" placeholder="请输入房间编号" readonly="readonly">
       </div>
      </div>
      <div  class="form-group">
      <label  class="col-sm-3 control-label">房间名/门牌号:</label>
      <div class="col-sm-10">
       <input type="text"  v-model="roominfo.roomname"  class="form-control" placeholder="请输入房间名/门牌号"/>
      </div>
    </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">房间规模:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="roominfo.roomsize"  class="form-control" placeholder="请输入房间规模"/>
       </div>
      </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">房间日租金:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="roominfo.dayprice"  class="form-control" placeholder="请输入日租金"/>
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="updateRoom()">修改</button>
    </div>
   </div>
  </div>
 </div>

 <!--房间住户列表模态框-->
 <div class="modal" id="roomLiverListModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideRoomLiverListModal()" type="button">&times;</button>
     <div class="modal-title">
      房间住户列表
     </div>
    </div>
    <div class="modal-body">
     <table class="table table-striped">
      <thead>
      <tr>
       <th colspan="6"><span>搜索</span>:<input type="text" placeholder="输入住户名查询" v-model="roomSearchLiverName">&nbsp;<button @click="roomLiverList(1,0)">搜索</button></th>
      </tr>
      <tr>
       <th>住户编号</th>
       <th>住户姓名</th>
       <th>住户联系方式</th>
       <th>住户房间编号</th>
       <th>住户到期时间</th>
       <th>操作</th>
      </tr>
      </thead>
      <tbody>
      <tr v-for="item in roomLivers.list">
       <td v-text="item.id">Tanmay</td>
       <td v-text="item.name">Tanmay</td>
       <td v-if="item.phone!=null&&item.phone!=''" v-text="item.phone">Tanmay</td>
       <td v-if="item.email!=null&&item.email!=''" v-text="item.email">Tanmay</td>
       <td v-text="item.roomid" v-show="item.roomid!=0">Tanmay</td>
       <td v-show="item.roomid==0"><span style="color: red">未绑定房间</span></td>
       <td v-text="item.endtime">Tanmay</td>
       <td><a href="#" @click.stop="toRemoveRoom(item.id)">移动房间</a></td>
      </tr>
      <tr>
       <ul class="pagination">
        <li><a @click="liverlist(livers.prePage)" v-show="livers.hasPreviousPage==true">&laquo;</a></li>
        <li v-for="item in livers.navigatepageNums"><a @click="liverlist(item)">{{item}}</a></li>
        <li><a @click="liverlist(livers.nextPage)" v-show="livers.hasNextPage==true">&raquo;</a></li>
       </ul>
      </tr>
      </tbody>

     </table>

    </div>

    <div class="modal-footer">
     <span style="color:red">需要将住户从房间移除,那么将他移动到0号房间就可以了哦!</span>
    </div>
   </div>
  </div>
 </div>

 <!--维修反馈信息修改模态框-->
 <div class="modal" id="updateWxfkInfoModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideupdatewxfkInfo()" type="button">&times;</button>
     <div class="modal-title">
      维修反馈处理/更改
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">反馈编号:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="wxfkinfo.id"  class="form-control" placeholder="请输入房间编号" readonly="readonly">
       </div>
      </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">反馈内容:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="wxfkinfo.fkcontent"  class="form-control" placeholder="反馈内容为空"  readonly="readonly"/>
       </div>
      </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">处理结果/内容:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="wxfkinfo.result"  class="form-control" placeholder="请输入处理结果/内容"/>
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="updateWxfk()">处理</button>
    </div>
   </div>
  </div>
 </div>

 <!--充值模态框-->
 <div class="modal" id="payModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hidePayModal()" type="button">&times;</button>
     <div class="modal-title">
      公寓余额充值
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div  class="form-group">
       <label  class="col-sm-3 control-label">充值金额:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="payMoney"  class="form-control" placeholder="充值金额"  />
       </div>
      </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">备注:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="gremark"  class="form-control" placeholder="备注" />
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="topay()">充值</button>
    </div>
   </div>
  </div>
 </div>

 <!--提现模态框-->
 <div class="modal" id="getMoneyModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideGetMoneyModal()" type="button">&times;</button>
     <div class="modal-title">
      公寓余额提现
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div  class="form-group">
       <label  class="col-sm-3 control-label">提现金额:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="payMoney"  class="form-control" placeholder="提现"  />
       </div>
      </div>
      <div  class="form-group">
       <label  class="col-sm-3 control-label">银行卡号:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="bankNum"  class="form-control" placeholder="银行卡号" />
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="getMoney()">提现</button>
    </div>
   </div>
  </div>
 </div>

 <!--修改管理员密码模态框-->
 <div class="modal" id="updateManagePassword" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideUpdateManagePasswordModal()" type="button">&times;</button>
     <div class="modal-title">
      修改管理员密码
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">新密码:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="newpwd"  class="form-control" placeholder="请输入新密码">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="updateMPWD()">修改</button>
    </div>
   </div>
  </div>
 </div>

 <!--修改管理员信息模态框-->
 <div class="modal" id="updateManageModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideUpdateManageModal()" type="button">&times;</button>
     <div class="modal-title">
      修改管理员信息
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">管理员姓名:</label>
       <div class="col-sm-10">
        <input type="text"  v-model="updateManageInfo.name"  class="form-control" placeholder="请输入管理员姓名">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="updateManageI()">修改</button>
    </div>
   </div>
  </div>
 </div>

 <!--住宿延期模态框-->
 <div class="modal" id="longerDayModal" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" data-keyboard="false">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="modal-header">
     <button class="close" @click="hideLongerDayModal()" type="button">&times;</button>
     <div class="modal-title">
      住户{{updateLiverInfo.name}}住宿延期
     </div>
    </div>
    <div class="modal-body">
     <form class="form-horizontal" role="form">
      <div class="form-group">
       <label  class="col-sm-3 control-label">延期时长(天):</label>
       <div class="col-sm-10">
        <input type="text"  v-model="longerDay"  class="form-control" placeholder="请输入延长天数">
       </div>
      </div>
     </form>
    </div>
    <div class="modal-footer">
     <button class="btn btn-primary" @click="doLongerDay()">延长</button>
    </div>
   </div>
  </div>
 </div>








<button hidden="hidden" @click.stop="manageS(1)"></button>


</div>
</body>
</html>
<script>
 var vm=new Vue({
  el:"#vuebox",
  data:{

   longerDay:"",
   newpwd:"",
   livertotal:"0",
   roomtotal:"0",
      livers:{},
   house:{},
   manage:{},
   system:{},
   liverid:"",
   roomid:"",
   newliver:{
    name:"",
    idcard:"",
    phone:"",
    roomid:"",
    code:"",
    password:"123456",
    houseid:""
   },
   data:{
    email:"",
    code:""
   },
   code:"",
   phone:"",
   email:"",
      newroom:{
          roomsize:"",
          dayprice:"",
          roomname:"",
          houseid:""
      },
   housenote:"",
   liverinfo:{},
   searchlivername:"",
   rooms:{},
   searchRoomName:"",
   roominfo:{},
   roomSearchLiverName:"",
   roomLivers:{},
   searchRoomid:"0",
   liverorders:{},
   searchStartTime:"",
   searchEndTime:"",
   searchOrderNo:"",
   searchUname:"",
      wxfksearchUid:"",
      wxfksearchStartTime:"",
      wxfksearchEndTime:"",
      wxfksearchContent:"",
   houseorderSearchStartTime:"",
   houseorderSearchEndTime:"",
   houseorderSearchOrderNo:"",
   houseorders:{},
   wxfks:{},
   wxfkinfo:{},
   zmanager:{},
   payMoney:"",
   gremark:"",
   bankNum:"",
   fanouttype:"1",
   fanoutnote:"",
   manageSSearchName:"",
   manageSpageInfo:"",
   manageInfo:{
    id:"",
    name:"",
    username:"",
    password:"",
    isz:"",
    money:"",
    state:"",
    code:"",
    email:"",
    houseid:""

   },
   newmanage:{
    name:"",
    username:"",
    password:"",
    houseid:""
   },
   managelistPageInfo:"",
   managelistSearchName:"",
   updateManageInfo:{},
   updateLiverInfo:{}

  },
  methods:{
   doLongerDay:function(){
    if (this.longerDay==""||isNaN(this.longerDay)){
     xtip.msg("请检查数据合法性");
    }else{
     doLongerDayLoadId=xtip.load("正在处理");
     axios.get(link+"house/longerLiverDay",{params:{liverid:this.updateLiverInfo.id,day:this.longerDay}}).then(res=>{
      xtip.close(doLongerDayLoadId);
      if (res.data.data=="success"){
       this.liverlist(1);
       $('#longerDayModal').modal("hide");
       xtip.alert("住户"+this.updateLiverInfo.name+"住宿延期成功!延期"+this.longerDay+"天",'s');
      }else{
       xtip.alert("住宿延期失败!",'e');
      }
     });
    }
   },
   toLongerDay:function(liver){
    this.updateLiverInfo=liver;

    $('#longerDayModal').modal("show");

   },
   hideLongerDayModal:function(){
    $('#longerDayModal').modal("hide");
   },
   updateManageI:function(){
    updateManageiLoadid=xtip.load("正在处理");
    axios.post(link+"house/updateManage",this.updateManageInfo).then(res=>{
     xtip.close(updateManageiLoadid);
     if (res.data.data=="success"){
      this.managelist(1);
      $('#updateManageModal').modal("hide");
      xtip.alert("修改成功",'s');
     }else {
      xtip.alert("修改失败",'e');
     }
    })
   },
   hideUpdateManageModal:function(){
    $('#updateManageModal').modal("hide");
   },
   updateMPWD:function(){
    if (this.newpwd!=""){
    this.updateManageInfo.password=this.newpwd;
    updateMPWDLoadid=xtip.load("正在处理");
    axios.post(link+"house/updateMPwd",this.updateManageInfo).then(res=>{
     xtip.close(updateMPWDLoadid);
     if (res.data.data=="success"){
      xtip.alert("密码成功修改为:"+this.newpwd);
      $('#updateManagePassword').modal("hide");

     }else{
      xtip.alert("修改失败",'e');
     }
    })
    }else{
     xtip.msg("请检查数据合法性");
    }
   },
   toUpdateManagePwdModal:function(id,flag){

     toupdateMPWDLoadid=xtip.load("正在处理");
     axios.get(link+"house/getManages",{params:{id:id}}).then(res=>{
      xtip.close(toupdateMPWDLoadid);
      if (res.data.data!="系统错误"){
       this.updateManageInfo=res.data.data.list[0];
       if (flag==0){
        $('#updateManagePassword').modal("show");
       }else{
        $('#updateManageModal').modal("show");
       }
      }else{
       xtip.alert("系统错误",'e');
      }
     })



   },
   hideUpdateManagePasswordModal:function(){
    $('#updateManagePassword').modal("hide");
   },
   managelist:function(pageNum){
    this.clearAll();
    managelistLoadId=xtip.load("正在处理");
    axios.get(link+"house/getManages",{params:{pageNum:pageNum,houseid:this.house.id,state:1,name:this.managelistSearchName}}).then(res=>{
     xtip.close(managelistLoadId);
     if (res.data.data!="系统错误"){
      this.managelistPageInfo=res.data.data;
      $('#managelist').attr("style","display:block");

     }else{
      xtip.alert("系统错误,无法加载管理员列表",'e');
     }
    });


   },
   toAddManage:function(){
    this.clearAll();
    $('#addManage').attr("style","display:block");

   },
   addManage:function(){
    if(this.newmanage.name==""||this.newmanage.username==""||this.newmanage.username==""){
     xtip.msg("请检查数据是否合法");
    }else{
     addManageLoadid=xtip.load("正在处理");
     this.newmanage.houseid=this.house.id;
     axios.post(link+"house/addManage",this.newmanage).then(res=>{
      xtip.close(addManageLoadid);
      if (res.data.data=="success"){
       xtip.alert("增加管理员成功",'s');
      }else{
       xtip.alert(res.data.data,'e');
      }
     })
    }
   },
   clearmanageadd:function(){
    this.newmanage.name="";
    this.newmanage.password="";
    this.newmanage.username=""
   },
   updateManage:function(manage){
    updateManageLoadid=xtip.load("update");
    axios.post(link+"house/updateManage",manage).then(res=>{
     xtip.close(updateManageLoadid);
     if (res.data.data=="success"){
      this.manageS(1);
      xtip.alert("处理成功",'s');
     }else{
      xitp.alert("系统错误,处理失败",'e')
     }
    });
   },
   manageSDo:function(id,name){
    if (window.confirm("确定要通过["+name+"]的请求吗?")){
     managesDoLoadId=xtip.load("正在处理");
     axios.get(link+"house/getManages",{params:{id:id}}).then(res=>{
      xtip.close(managesDoLoadId);
      if (res.data.data!="系统错误"){
       this.manageInfo=res.data.data.list[0];
       this.manageInfo.state=1;
       this.updateManage(this.manageInfo);
      }else{
       xitp.alert("系统错误,审核失败",'e')
      }
     })
    }
   },
   deleteManage:function(id,name,isz){
    if (isz==1){
     xtip.alert("不可以删除自己哦~");
    }else{
     if (window.confirm("确定要删除["+name+"]吗?")){
      deleteManageLoadId=xtip.load("正在处理");
      axios.get(link+"house/deleteManage",{params:{id:id}}).then(res=>{
       xtip.close(deleteManageLoadId);
       if (res.data.data=="success"){
        xtip.msg("删除成功",{icon:'s'});
        this.managelist(1);
       }else {
        xtip.msg("删除失败",{icon:'e'});
       }
      })
     }
    }
   },
   manageSDoNot:function(id,name){
    if (window.confirm("确定要拒绝["+name+"]的请求吗?")) {
     manageSDoNotLoadId=xtip.load("正在处理");
     axios.get(link+"house/deleteManage",{params:{id:id}}).then(res=>{
      xtip.close(manageSDoNotLoadId);
      if (res.data.data=="success"){
       this.manageS(1);
       xtip.alert("处理成功,已经拒绝["+name+"]的审核请求");
      }else{
       xitp.alert("系统错误,处理失败",'e')
      }
     })

    }
   },
   manageS:function(pageNum){
    this.clearAll();
    manageSLoadId=xtip.load("正在获取管理员审核信息");
    axios.get(link+"house/getManages",{params:{pageNum:pageNum,houseid:this.house.id,state:0,name:this.manageSSearchName}}).then(res=>{
     xtip.close(manageSLoadId);
     if (res.data.data!="系统错误"){
      this.manageSpageInfo=res.data.data;
      $('#manageS').attr("style","display:block");
     }else{
      xtip.msg("系统错误",{icon:'e'})
     }
    })
   },
   manageM:function(){
    if ($('#manageshow').html()=="管理员管理"){
     $('#manageshow').html("返回管理页面");
     this.clearAll();
     $('#asidem').attr("style","display:none");
     $('#asidez').attr("style","display:block");
    }else {
     $('#manageshow').html("管理员管理");
     $('#asidem').attr("style", "display:block");
     $('#asidez').attr("style", "display:none");
    }
   },
   clearfanoutnote:function(){
    this.fanoutnote="";
   },
   fanoutmessage:function(){
    if (this.fanoutnote==""){
     xtip.msg("通知不得为空!",{icon:'e'});
    }else{
     if (this.fanouttype==2){
      xtip.msg("因系统维护原因,无法发送短信通知!",{icon:'e'});
     }else{
      fanoutLoadId=xtip.load("正在发送");
      axios.get(link+"house/note/fanout",{params:{type:this.fanouttype,note:this.fanoutnote,houseid:this.house.id}}).then(res=>{
       xtip.close(fanoutLoadId);
       if (res.data.data=="success"){
        xtip.msg("发送成功,由于系统维护,所有短信通知无法成功发送",{icon:'s'});
       }else{
        xtip.msg("发送失败!",{icon:'e'})
       }
      })
     }
    }
   },
   getMoney:function(){
   if (isNaN(this.payMoney)==false){
    if (this.payMoney>0){
     if (isNaN(this.bankNum)==false){
      if (this.bankNum.length==18){
       getMoneyLoadId=xtip.load("正在处理...");
       axios.get(link+"house/getMoney",{params:{money:this.payMoney,bankNum: this.bankNum,houseid:this.house.id}}).then(res=>{
        xtip.close(getMoneyLoadId);
        if (res.data.data=="success"){
         this.hideGetMoneyModal();
         xtip.msg("提现成功,提现金额:"+this.payMoney,{icon:'s'});
         this.payMoney="";
         this.houserate();
        }else{
        if (res.data.data=="nomoney"){
         xtip.msg("余额不足",{icon:'e'});
        }else{
         xtip.msg("提现失败",{icon:'e'});
        }
        }
       })
      }else{
       xtip.msg("银行卡号格式错误",{icon:'e'});
      }
     }else{
      xtip.msg("银行卡号格式错误",{icon:'e'});
     }
    }else{
     xtip.msg("提现金额必须大于0",{icon:'e'});
    }
   }else{
    xtip.msg("提现金额必须是数字",{icon:'e'});
   }
   },
   toGetMoneyModal:function(){
    $('#getMoneyModal').modal("show");
   },
   hideGetMoneyModal:function(){
    $('#getMoneyModal').modal("hide");
   },
   toPayModal:function(){
    $('#payModal').modal("show");
   },
   topay:function(){
   if (isNaN(this.payMoney)==false){
    if (this.payMoney>0){
     window.location.href="http://localhost:8081/housepay?houseId="+this.house.id+"&price="+this.payMoney+"&gremark="+this.gremark;
     this.payMoney="";
    }else{
     xtip.msg("充值金额必须大于0",{icon:'e'})
    }
   }else{
    xtip.msg("充值金额必须为数字",{icon:'e'})
   }
   },
   hidePayModal:function(){
    $('#payModal').modal("hide");
   },
   deleteHouseOrder:function(id){
    if (window.confirm("确认删除本条公寓订单记录吗?")){
     deleteHouseOrderLoadId=xtip.load("正在处理");
     axios.get(link+"house/deleteHouseOrder",{params:{id:id}}).then(res=>{
      xtip.close(deleteHouseOrderLoadId);
      if (res.data.data=="success"){
       xtip.msg("删除公寓订单成功",{icon:'s'})
       this.houseorder(1);
      }else{
       xtip.msg("删除公寓订单失败",{icon:'e'})
      }
     })
    }else{
     xtip.msg("操作取消");
    }
   },
   deleteWxfk:function(id){
    if (window.confirm("确认要删除该条反馈么?")){
     deleteWxfkLoadId=xtip.load("正在处理");
     axios.get(link+"house/deleteWxfk",{params:{wxfkid:id}}).then(res=>{
      xtip.close(deleteWxfkLoadId);
      if (res.data.data=="success"){
       this.wxfkmanage(1);
       xtip.msg("删除成功",{icon:'s'});
      }else{
       xtip.msg("删除失败",{icon:'e'});
      }
     })
    }else{
     xtip.msg("操作取消");
    }
   },
   updateWxfk:function(){
    updatewxfkloadid=xtip.load("正在处理");
    this.wxfkinfo.person=this.manage.id;
    axios.post(link+"house/updateWxfk",this.wxfkinfo).then(res=>{
     xtip.close(updatewxfkloadid);
     if (res.data.data=="success"){
      this.hideupdatewxfkInfo();
      this.wxfkmanage(1);
      xtip.msg("处理成功!",{icon:'s'})
     }else{
      xtip.msg("系统错误",{icon:'e'})
     }
    })
   },
   updateWxfkInfo:function(id){
    updatewxfkinfoloadid=xtip.load("正在获取反馈信息");
    axios.get(link+"house/getWxfks",{params:{id:id}}).then(res=>{
     xtip.close(updatewxfkinfoloadid);
     if (res.data.data!="系统错误"){
      this.wxfkinfo=res.data.data.list[0];
      $('#updateWxfkInfoModal').modal("show");
     }else{
      xtip.msg("系统错误",{icon:'e'})
     }
    })

   },
   hideupdatewxfkInfo:function(){
    $('#updateWxfkInfoModal').modal("hide");
   },
      wxfkmanage:function(pageNum){
          this.clearAll();
          wxfkloadid=xtip.load("正在查询维修反馈数据");
          if (this.wxfksearchStartTime==""){
           this.wxfksearchStartTime="1988/06/06"
          }
       if (this.wxfksearchEndTime==""){
        this.wxfksearchEndTime="1988/06/06"
       }
          axios.get(link+"house/getWxfks",{params:{pageNum:pageNum,houseid:this.house.id,uid:this.wxfksearchUid,fkcontent:this.wxfksearchContent,startTime:this.wxfksearchStartTime,endTime:this.wxfksearchEndTime}}).then(res=>{
           xtip.close(wxfkloadid);
           if ( this.wxfksearchEndTime=="1988/06/06"){
            this.wxfksearchEndTime="";
           }
           if ( this.wxfksearchStartTime=="1988/06/06"){
            this.wxfksearchStartTime="";
           }
          if (res.data.data!="系统错误"){
           this.wxfks=res.data.data;
          }else{
           xtip.msg("系统错误",{icon:'e'})
          }
          });
          $('#wxfklist').attr("style","display:block");
      },
   deleteLiverOrder:function(id){
    deleteliverorderloadid=xtip.load("正在删除订单");
    axios.get(link+"house/deleteLiverOrder",{params:{id:id}}).then(res=>{
     if (res.data.data=="success"){
      xtip.close(deleteliverorderloadid);
      this.liverorder(1);
      xtip.msg("删除成功",{icon:'s'})
     }else{
      xtip.msg("删除失败",{icon:'e'})
     }
    })
   },
   liverorder:function (pageNum) {
    this.clearAll();
    liverorderLoadid=xtip.load("正在获取住户订单信息");
    if (this.searchStartTime==""){
     this.searchStartTime="1988/06/06";
    }
    if (this.searchEndTime==""){
     this.searchEndTime="1988/06/06";
    }
    axios.get(link+"house/getLiverOrders",{params:{pageNum:pageNum,houseid:this.house.id,startTime:this.searchStartTime,endTime:this.searchEndTime,orderNo:this.searchOrderNo,liverName:this.searchUname}}).then(res=>{
     xtip.close(liverorderLoadid);
     if ( this.searchEndTime=="1988/06/06"){
      this.searchEndTime="";
     }
     if ( this.searchStartTime=="1988/06/06"){
      this.searchStartTime="";
     }
     if (res.data.data!="系统错误"){

      this.liverorders=res.data.data;
      $("#liverorder").attr("style","display:block");
     }else{
      xtip.msg("系统错误!",{icon:'e'})
     }
    });

   },
   hideRoomLiverListModal:function(){
    $('#roomLiverListModal').modal("hide");
   },
   roomLiverList:function(pageNum,id){
    if (id!=0){
     this.searchRoomid=id;
    }
    liverloadid=xtip.load("正在获取住户信息");
    axios.get(link+"house/getlivers",{params:{houseid:this.house.id,pageNum:pageNum,livername:this.roomSearchLiverName,roomid:this.searchRoomid}}).then(res=>{
     xtip.close(liverloadid);
     this.roomLivers=res.data.data;
     $('#roomLiverListModal').modal("show");
    });

   },
   updateRoom:function(){
    if (this.roominfo.dayprice<=0){
     xtip.msg("日租金不可小于或等于0",{icon:'e'});
    }else {
     if (this.roominfo.roomsize<=this.roominfo.roomnow){
      xtip.msg("房间规模不可小于当前房间居住人数!")
     }else{
      loadid=xtip.load("正在处理");
      axios.post(link+"house/updateRoom",this.roominfo).then(res=>{
       xtip.close(loadid);
       if (res.data.data=="success"){
        this.roomlist(1);
        this.hideUpdateRoomInfoModal();
        xtip.msg("处理成功!",{icon:'s'});
       }else{
        xtip.msg("处理失败!",{icon:'e'})
       }
      })
     }
    }
   },
   hideUpdateRoomInfoModal:function(){
    $('#updateRoomInfoModal').modal("hide");
   },
   updateRoomInfo:function(id){
    loadid=xtip.load("正在获取房间信息");
    axios.get(link+"house/getRoomById",{params:{id:id}}).then(res=>{
     xtip.close(loadid);
     if (res.data.data=="系统错误"){
      xtip.msg("系统错误",{icon:'e'})
     }else{
      this.roominfo=res.data.data;
      $('#updateRoomInfoModal').modal("show");
     }
    })
   },
   deleteRoom:function(id,name){
    if (window.confirm("确定要删除编号为:["+id+"]的房间["+name+"]吗?\n删除将导致该房间内的所有住户失去房间和租住信息(包括到期时间)")==true){
     loadid=xtip.load("正在删除房间");
     axios.get(link+"house/deleteRoom",{params:{id:id}}).then(res=>{
      xtip.close(loadid);
      if (res.data.data=="success"){

       this.roomlist(1);
       xtip.msg("删除房间成功",{icon:'s'});
      }else{
       xtip.msg("删除失败["+res.data.data+"]",{icon:"e"})
      }
     })
    }else{
     xtip.msg("操作取消")
    }
   },
   deleteLiver:function(id,name){
   if ( window.confirm("确认要将住户["+name+"]从本公寓移除么?")==true){
    loadid=xtip.load("正在移除...");
   axios.get(link+"house/deleteLiver",{params:{id:id}}).then(res=>{
    xtip.close(loadid);
    if (res.data.data=="success"){
     this.liverlist(1);
     xtip.msg("操作成功,成功将住户["+name+"]从公寓移除",{icon:"s"});
    }else{
     xtip.msg("操作失败",+res.data.data,{icon:'e'})
    }
   })
   }else{
    xtip.msg("操作取消")
   }
   },
   roomMove:function(){
       if (window.confirm("房间移动后,该住户的到期时间将改变为今天,无法保持原状态,确认还要继续移动吗?")){
           loadid=xtip.load("正在处理");
           axios.post(link+"house/roomMove",this.liverinfo).then(res=>{
               if (res.data.data=="success"){
                   xtip.close(loadid);
                   this.hideRoomMoveModal();
                   this.liverlist(1);

                   xtip.msg("处理成功",{icon:'s'})
               }else{
                   xtip.close(loadid);
                   if (res.data.data=="out"){
                       xtip.msg("房间人数已满,无法移动",{icon:"e"})
                   }else{
                       xtip.msg(res.data.data,{icon:"e"})
                   }
               }
           })
       }

   },
   getManageInfo:function (loginName) {

       loadid2=xtip.load("正在初始化1/2");
    axios.get(link+"house/selectHouseByLoginName",{params:{loginName:loginName}}).then(
            res=>{
                xtip.close(loadid2);
             if (res.data.data.result=="null"){
              alert("非法访问请求!"+loginName);
              window.location.href="house_login.html";
             }else{
              this.house=res.data.data.house;
              this.manage=res.data.data.manage;
              xtip.msg("欢迎回来!["+this.house.housename+"]--管理员:<"+this.manage.name+">",{icon:'s',pos:'t'});
              if (this.manage.email==null||this.manage.email==""){
               $('#emailMOdal').modal("show");
              }

             }
            }
    )
   },
   hideRoomMoveModal:function () {
    $('#roomMoveModal').modal("hide");
   }
   ,
   liveradd:function () {
    this.clearAll();
    $('#liveradd').attr("style","display:block");
   },
   help:function(){
    this.clearAll();
    $('#help').attr("style","display:block");
   },
   clearAll:function () {

    $('#liveradd').attr("style","display:none");

    $('#help').attr("style","display:none");
    $('#managelist').attr("style","display:none");
    $('#addManage').attr("style","display:none");
    $('#manageS').attr("style","display:none");
    $('#liverlist').attr("style","display:none");
    $('#welcome').attr("style","display:none");
    $('#houseinfo').attr("style","display:none");
    $('#addroom').attr("style","display:none");
    $('#roomlist').attr("style","display:none");
    $('#houserate').attr("style","display:none");
    $('#liverorder').attr("style","display:none");
    $('#houseorder').attr("style","display:none");
    $('#systemrate').attr("style","display:none");
    $('#fanout').attr("style","display:none");
    $('#wxfklist').attr("style","display:none");
   },
   liverlist:function (pageNum) {
       liverloadid=xtip.load("正在获取住户信息");
       axios.get(link+"house/getlivers",{params:{houseid:this.house.id,pageNum:pageNum,livername:this.searchlivername}}).then(res=>{
        xtip.close(liverloadid);
           this.livers=res.data.data;
           this.livertotal=this.livers.total;


       });
    this.clearAll();
    $('#liverlist').attr("style","display:block");

   },
   welcome:function () {
    this.clearAll();
    $('#welcome').attr("style","display:block");
   },
   houseinfo:function () {
    this.liverlist(1);
    this.roomlist(1);
    this.clearAll();
    $('#houseinfo').attr("style","display:block")
   },
   addroom:function () {
    this.clearAll();
    $('#addroom').attr("style","display:block");
   },
   roomlist:function (pageNum) {
    loadid=xtip.load("正在获取房间数据");
    axios.get(link+"house/getRooms",{params:{houseid:this.house.id,roomname:this.searchRoomName,pageNum:pageNum}}).then(res=>{
     xtip.close(loadid);
     if (res.data.data.result=="success"){
      this.rooms=res.data.data.pageinfo;
      this.roomtotal=this.rooms.total;
     }else{
      xtip.msg("获取房间数据失败",{icon:'e'})
     }
    });
    this.clearAll();
    $('#roomlist').attr("style","display:block ");
   },
   houserate:function () {
    this.clearAll();
    houserateLoadid=xtip.load("正在获取资费信息");
    axios.get(link+"house/getHouseMoney",{params:{houseid:this.house.id}}).then(res=>{
     xtip.close(houserateLoadid);
     if (res.data.data!="系统错误"){
      this.zmanager=res.data.data;
      $('#houserate').attr("style","display:block");
     }else{
      xtip.msg("系统错误",{icon:"e"})
     }
    });

   },
   houseorder:function (pageNum) {
    this.clearAll();
    houseorderLoadid=xtip.load("正在获取公寓订单信息");
    if (this.houseorderSearchStartTime==""){
     this.houseorderSearchStartTime="1988/06/06";
    }
    if (this.houseorderSearchEndTime==""){
     this.houseorderSearchEndTime="1988/06/06";
    }
    axios.get(link+"house/selectHouseOrders",{params:{pageNum:pageNum,houseid:this.house.id,orderno:this.houseorderSearchOrderNo,startTime:this.houseorderSearchStartTime,endTime:this.houseorderSearchEndTime}}).then(res=>{
     if (this.houseorderSearchEndTime=="1988/06/06"){
      this.houseorderSearchStartTime="";
     }
     if (this.houseorderSearchEndTime=="1988/06/06"){
      this.houseorderSearchEndTime="";
     }
     xtip.close(houseorderLoadid);
     if (res.data.data!="系统错误"){
      this.houseorders=res.data.data;
      $('#houseorder').attr("style","display:block");
     }else{
      xtip.msg("系统错误",{icon:'e'})
     }
    });

   },
   systemrate:function () {
    this.clearAll();
    $('#systemrate').attr("style","display:block");
   },
   systemnote:function () {
    alert(this.system.note);
   },
   fanout:function () {
    this.clearAll();
    $('#fanout').attr("style","display:block");
   },
   getSystem:function () {
    Systemloadid=xtip.load("正在初始化2/2");
    axios.get(link+"house/getSystem").then(res=>{
     xtip.close(Systemloadid);
     this.system=res.data.data;
     xtip.alert(this.system.note,'h');
    })
   },
   clear1:function () {
    this.liverid="";
    this.roomid="";
   },
   add1:function () {
    loadid=xtip.load("正在处理1/2");
    axios.get(link+"liver/selectLiverById",{params:{id:this.liverid}}).then(res=>{
     xtip.close(loadid);
     if (res.data.data.result=="null"){
      xtip.msg("编号为:["+this.liverid+"]的住户不存在!",{icon:'e'});
     }else{
      if ( window.confirm("确认住户信息:编号["+res.data.data.result.id+"],姓名:["+res.data.data.result.name+"]")==true){
       loadid=xtip.load("正在处理2/2");
       axios.get(link+"house/add1",{params:{liverid:this.liverid,roomid:this.roomid,houseid:this.house.id}}).then(res2=>{
        if (res2.data.data=="success"){
         xtip.close(loadid);
         xtip.msg("住户["+res.data.data.result.name+"]入住登记成功!",{icon:'s'});
         this.toLongerDay(res.data.data.result);
        }else{
         xtip.close(loadid);
         xtip.msg(res2.data.data,{icon:'e'});
        }
       })
      }else{
       xtip.msg("操作取消",{icon:'e'});
      }
     }

    })
   },
   clear2:function () {
    this.newliver.code="";
    this.newliver.idcard="";
    this.newliver.name="";
    this.newliver.phone="";
    this.newliver.roomid="";
   },
   add2:function () {
    if (this.newliver.idcard.length==18){
     if(this.newliver.phone==this.phone&&this.newliver.code==this.code){
      this.newliver.houseid=this.house.id;
      add2LoadId=xtip.load("正在处理");
      axios.post(link+"house/add2",this.newliver).then(res=>{
          xtip.close(add2LoadId);
       if (res.data.data=="success"){
        xtip.msg("住户["+this.newliver.name+"]入住登记成功!正在处理",{icon:'s'});
        this.code="outtime";
        this.phone="";
           add2LoadId=xtip.load("正在处理");
           axios.get(link+"liver/getLiver",{params:{pageNum:1,loginName:this.newliver.phone}}).then(res=>{
               xtip.close(add2LoadId);
               xtip.alert("住户"+this.newliver.name+"入住登记成功!\n登记信息如下:"+"\n"+"住户姓名:"+this.newliver.name+"\n手机号:"+this.newliver.phone+"\n"+"默认登录密码:123456"+"\n房间编号:"+this.newliver.roomid,'s');
               this.newliver=res.data.data.list[0];
               this.toLongerDay(this.newliver);
           });


       }else{
        xtip.msg(res.data.data,{icon:'e'});
       }
      })
     }else{
      if (this.code=="outtime"){
       xtip.msg("验证码失效,请重新发送",{icon:'e'});
      }else{
       xtip.msg("验证码错误",{icon:'e'});
      }

     }
    }else{
     xtip.msg("身份证号码格式不合法!",{icon:'e'});
    }
   },
   sendEmail:function(){
    if (this.data.email!=""&&this.data.email.length>4){
     loadid=xtip.load("正在发送");
     var num=30;
     $('#sendE').attr("disabled","disabled");
     axios.get(link+"house/sendEmail",{params:{email:this.data.email}}).then(res=>{
      if(res.data.data.result=="success"){
       xtip.close(loadid);
       xtip.msg("验证码发送成功!登记成功或刷新页面前有效!",{icon:'s'});
       $('#sendE').text(num+"秒后重新发送");
       this.email=res.data.data.email;
       this.code=res.data.data.code;
       var time=setInterval(()=>{
        if(num>0){
         num--;
         $('#sendE').text(num+"秒后重新发送");
        }else{
         $('#sendE').text("重新发送验证码");
         $('#sendE').removeAttr("disabled");
         clearInterval(time);

        }
       },1000);
      }else{
       xtip.close(loadid);
       xtip.msg("验证码发送失败!",{icon:'e'});
       $('#sendE').removeAttr("disabled");
      }
     })
    }else{
     xtip.msg("验证码发送失败,邮箱格式错误!",{icon:'e'});
     $('#sendE').removeAttr("disabled");
    }
   },
   sendCode:function () {
    var num=60;
    $('#send').attr("disabled","disabled");
    if (this.newliver.phone.length==11){
     axios.get(link+"house/sendCode",{params:{phone:this.newliver.phone}}).then(res=>{
      if(res.data.data.result=="success"){
       xtip.msg("验证码发送成功!登记成功或刷新页面前有效!",{icon:'s'});
       $('#send').text(num+"秒后重新发送");
       this.phone=res.data.data.phone;
       this.code=res.data.data.code;
       var time=setInterval(()=>{
        if(num>0){
         num--;
         $('#send').text(num+"秒后重新发送");
        }else{
         $('#send').text("重新发送验证码");
         $('#send').removeAttr("disabled");
         clearInterval(time);

        }
       },1000);
      }else{
       xtip.msg("验证码发送失败!",{icon:'e'});
       $('#send').removeAttr("disabled");
      }
     })
    }else{
     xtip.msg("手机号码格式有误!",{icon:'e'});
     $('#send').removeAttr("disabled");
    }
   },
   hideEmailModal:function () {
   $('#emailMOdal').modal("hide");
   },
   bindEmail:function () {
    if(this.data.code!=""&&this.data.email!=""){
     if (this.code==this.data.code&&this.email==this.data.email){
      axios.get(link+"house/bindEmail",{params:{email:this.email,id:this.manage.id}}).then(
              res=>{
               if (res.data.data=="success"){
                xtip.msg("绑定成功!",{icon:'s'});
                $('#emailMOdal').modal("hide");
               }else{
                xtip.msg(res.data.data,{icon:'e'});
               }
              }
      )
     }else{
      xtip.msg("验证码错误!",{icon:'e'});
     }
    }else{
     xtip.msg("请检查数据合法性!",{icon:'e'});
    }
   },
      addR:function () {
          this.newroom.houseid=this.house.id;
          loadid=xtip.load("正在处理")
          axios.post(link+"house/addroom",this.newroom).then(res=>{
              xtip.close(loadid);
              if (res.data.data=="success"){
                  xtip.msg("增加房间成功",{icon:"s"})
              }else{
                  xtip.msg("增加房间失败",{icon:"e"})
              }
          })
      },
      clearroomadd:function () {
          this.newroom.dayprice="";
          this.newroom.roomname="";
          this.newroom.roomsize="";
      },
   toUpdateHouseNote:function () {
    this.housenote=this.house.housenote;
    $('#houseNoteModal').modal("show");
   },
   hideHouseNoteModal:function () {
    $('#houseNoteModal').modal("hide");
   },
   updateHouseNote:function () {
    var oldnote=this.house.housenote;
    this.house.housenote=this.housenote;
    loadid=xtip.load("正在处理");
    axios.post(link+"house/update",this.house).then(res=>{
     xtip.close(loadid);
     if (res.data.data=="success"){
      xtip.msg("修改公告成功!",{icon:"s"})
      this.hideHouseNoteModal();
     }else{
      if (res.data.data=="ban"){
       xtip.msg("公告中含有违规字眼!",{icon:"e"});
       this.house.housenote=oldnote;
      }else{
       xtip.msg("修改失败!",{icon:"e"})

      }
     }
    })

   },
   toRemoveRoom:function (id) {
    this.hideRoomLiverListModal();
    loadid=xtip.load("正在获取数据");
    axios.get(link+"liver/selectLiverById",{params:{id:id}}).then(res=>{
     xtip.close(loadid);
     if (res.data.data.result!='null'){
      this.liverinfo=res.data.data.result;
      $('#roomMoveModal').modal("show");
     }else{
      xtip.msg("住户信息异常!",{icon:'e'})
     }
    })
   }
  },
  mounted(){

   var loginName=decodeURIComponent(window.atob(decodeURIComponent(location.search.slice(1).split("&")[2])));
   this.getManageInfo(loginName);
   this.getSystem();
  }
 })
</script>